package com.bw.kylin1705f;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@SpringBootApplication()
@MapperScan(basePackages = {"com.bw.kylin1705f.mapper"})
@EnableCaching
@EnableTransactionManagement
public class Kylin1705fApplication {

    public static void main(String[] args) {
        SpringApplication.run(Kylin1705fApplication.class, args);
    }

    @Bean
    public ExecutorService executorService(){
        return Executors.newCachedThreadPool();
    }

}
